package ${g.codePackage}.service;

import cn.stylefeng.guns.core.common.page.LayuiPageFactory;
import ${g.codePackage}.entity.${g.entityName};
import ${g.codePackage}.mapper.${g.entityName}Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * ${g.name}Service
 *
 * @author ${g.author}
 * @Date ${g.date}
 */
@Service
public class ${g.entityName}Service extends ServiceImpl<${g.entityName}Mapper, ${g.entityName}> {

    /**
     * 获取${g.name}列表
     *
     * @author fengshuonan
     * @Date 2018/12/23 6:05 PM
     */
    public Page<Map<String, Object>> list(String condition) {
        Page page = LayuiPageFactory.defaultPage();
        return this.baseMapper.list(page, condition);
    }
}
